<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<c:set var="jpath" value="${pageContext.request.contextPath }"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="${jpath}/static/qd/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="${jpath}/static/qd/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="${jpath}/static/qd/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="${jpath}/static/qd/css/nav.css"/>
<link rel="stylesheet" type="text/css" href="${jpath}/static/qd/css/suqiujianyisuoyou.css"/>

<title>suqiujianyisuoyou</title>
</head>
<body>
	<div id="nav" class="backcolor">
		<div class="container">
			<div class="row">
				<div class="col-xs-2"><a href="javascript:void(0);" onclick="history.go(-1)"><img src="${jpath}/static/qd/img/back_white.png" height="20px" width="20px"/></a></div>
				<div class="col-xs-8 white-text">诉求建议</div>
				<div class="col-xs-2"></div>
			</div>
		</div>
	</div>
		
	<div class="container set_padding">
		<div class="row">
			<div class="col-xs-3 nav_s_size align_center clear_padding hui-text"></div>
			<div ttname="2" class="tt col-xs-3 nav_s_size align_center clear_padding hui-text active_title">企业</div>
			<div ttname="1" class="tt col-xs-3 nav_s_size align_center clear_padding hui-text">金融</div>
			<input id="userCLassNo" type="hidden" value="${userCLassNo}"/>
			<div class="col-xs-3 nav_s_size align_center clear_padding hui-text"></div>
		</div>
	</div>
	
	<c:forEach var="u" items="${userUis}" varStatus="status">
		<div userId="${u.id}" class="sqjy container name_mar bgc_white set_margin">
			<div class="row">
				<div class="col-xs-4 clear_padding"><img src="${jpath}/static/qd/img/hongqi.jpg" height="100px" width="100px"/></div>
				<div class="col-xs-8">
					<div id="u_name" class="black-text">${u.enterprise}</div>
					<div id="u_content" class="hui-text s_size">${u.enterpriseContent}</div>
					<div class="date black-text s_size align_right">2017-12-21 12:20:59</div>
				</div>
			</div>
		</div>
	</c:forEach> 
<script type="text/javascript">
 $(function(){
 		$(".sqjy").click(function(){
 			var _this=$(this);
 			var userId = _this.attr("userId");
            location.href="${jpath}/qd/suqiujianyi?userId="+userId;
        });  
 		if($("#userCLassNo").val()==2){
 			$(".tt").eq(0).addClass("active_title");
 			$(".tt").eq(1).removeClass("active_title");
 		}
 		if($("#userCLassNo").val()==1){
 			$(".tt").eq(1).addClass("active_title");
 			$(".tt").eq(0).removeClass("active_title");
 		}
        $(".tt").click(function(){
            var _this=$(this);
            $(".tt").each(function(index,e){
                $(e).removeClass("active_title");
            });
            var userCLassNo = _this.attr("ttname");
            location.href="${jpath}/qd/suqiujianyisuoyou?userCLassNo="+userCLassNo;
            _this.addClass("active_title");
        });  
});
</script>
</body>
</html>
